<?php

namespace app\common;


/**
 * 定义常量
 */
class DictConstant
{

    // 错误
    const ERROR_STATUS = 0;
    // 成功
    const SUCCESS_STATUS = 1;


    // ++++++++++++++++++++ 订单状态 ++++++++++++++++++++ //
    const AllOrderStatus = [2, 3, 4, 5, 6, 7, 8, 20]; // 所有的订单状态
    const ValidOrderStatus = [2, 3, 4, 5, 6, 7, 8, 20]; // 有效的订单状态
    const RealOrderStatus = [2, 3, 4, 5, 6, 7, 8, 20]; // 真实的订单状态
    const ProgressOrderStatus = [2, 3, 4, 5, 6, 7, 8]; // 进行中的订单状态
    const CanceledOrderStatus = [21, 22, 23]; // 取消退款的订单状态


    const OrderPendingPayment = 1; // 待付款
    const OrderPendingTaking = 2; // 待发货
    const OrderPendingReceive = 3; // 待签收
    const OrderPartReceive = 4; // 部分签收
    const OrderPendingPickup = 5; // 待提货
    const OrderPartPickup = 6; // 部分提货
    const OrderPendingUsed = 7; // 待使用
    const OrderPartUsed = 8; // 部分使用
    const OrderCompleted = 20; // 已完成
    const OrderCancelled = 21; // 已取消
    const OrderPendingRefund = 22; // 待退款
    const OrderRefund = 23; // 已退款

    const OrderInvalid = 90; // 失效订单


}